package com.bjc.base.utils;

import java.util.ResourceBundle;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 通用工具类 该类提供公用方法
 */
public class ToolUtil {

	@SuppressWarnings("unused")
	private static final Logger log = LoggerFactory.getLogger(ToolUtil.class);
	
	/**
	* 获取应用程序配置信息
	* @param key
	* @return
	*/
	public static String getAppConfig(String properties,String key) {
		ResourceBundle appcfg = ResourceBundle.getBundle(properties);
		return appcfg.getString(key);
	}

}
